// Package dbdto
// @Author: zhangdi
// @File: chat_dialog
// @Version: 1.0.0
// @Date: 2023/7/3 15:30
package dbdto

import (
	"time"
)

type ChatDialogAdd struct {
	ToolId uint   `gorm:"size:50;not null;unique" json:"tool_id" `     //关联的ToolId
	Clips  string `gorm:"size:50;not null;default:''" json:"content" ` //所使用剪贴板
}

type ChatDialogInfo struct {
	ID            uint      `gorm:"primary_key;auto_increment" json:"id"`
	ToolId        uint      `gorm:"size:50;not null;unique" json:"tool_id" `           //关联的ToolId
	ToolName      string    `gorm:"size:50;not null;unique" json:"tool_name" `         //关联的ToolId
	ToolIcon      string    `gorm:"size:50;not null;unique" json:"tool_icon" `         //关联的ToolId
	ToolIconColor string    `gorm:"size:50;not null;unique" json:"tool_icon_color" `   //关联的ToolId
	Clips         string    `gorm:"size:50;not null;default:''" json:"clips" `         //所使用剪贴板
	FirstContent  string    `gorm:"size:50;not null;default:''" json:"first_content" ` //所使用剪贴板
	CreatedAt     time.Time `json:"created_at"`
}

type ChatDialogSelect struct {
	List     []*ChatDialogInfo `json:"list"`
	Total    int64             `json:"total"`
	CurrPage int               `json:"curr_page"`
	PageSize int               `json:"page_size"`
}
